package com.hd.sup.modules.alarm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hd.sup.modules.alarm.model.AlarmRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author chentl123
 * @since 2021-01-07
 */
public interface AlarmRuleMapper extends BaseMapper<AlarmRule> {

    /**
     * @return java.util.List<com.hd.sup.modules.alarm.model.AlarmRule>
     * @author chentl
     * @description 根据车辆id 获取报警规则配置列表
     * @date 2021/1/7 9:55 上午
     * @params [vehicleIds]
     */
    List<AlarmRule> getAlarmRuleList(@Param("vehicleIds") List<String> vehicleIds);

    /**
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @author chentl
     * @description 报警规则列表查询
     * @date 2021/1/7 6:55 下午
     * @params [page, alarmRule]
     */
    List<Map<String, Object>> pageList(@Param("page") Page page, @Param("alarmRule") AlarmRule alarmRule);
}
